#include <iostream>
#include <time.h>
#include <vector>
using namespace std;
int main()
{
    clock_t start, end;
    vector<int> table(300000000, 1);
    cout << "address of origin is " << &table.back() << endl;
    start = clock();
    vector<int> t(table);
    //要记录运行时间的程序段；
    end = clock();
    cout << "address of t after copy is " << &t.back() << endl;
    cout<<"Run time: "<<(double)(end - start) / CLOCKS_PER_SEC<<"S"<<endl;

    start = clock();
    vector<int> a(move(table));
    //要记录运行时间的程序段；
    end = clock();
    cout << "address of a after move is " << &a.back() << endl;
    cout<<"Run time: "<<(double)(end - start) / CLOCKS_PER_SEC<<"S"<<endl;
}